<?php

class Vk extends General {

    public $token;

    public function Vk() {
        //$this->token = json_decode();
        $json = $this->leer_contenido_completo('https://oauth.vk.com/access_token?client_id=3779261&scope=video&client_secret=ycbxQi59pSd1wMWD2fsI&grant_type=client_credentials');
        $this->token = json_decode($json);
    }

    public function lista_canciones() {
        //return $this->token->access_token;
        $datos = simplexml_load_file('https://api.vk.com/method/search.xml?q=mana&access_token='.$this->token->access_token);
        return $datos;
    }

}
?>
